<template>
  <div id="app">
  	<mt-picker :slots="slots" @change="onValuesChange" ></mt-picker>  
    <router-view></router-view>
  </div>
</template>
 
<script>
 
export default {
  name: 'app',
  data () {
  	return {
  		value:'',
  		slots:
				[
					{
						values: ['年假', '事假', '病假', '婚假', '其他', '婚假']
					}
				]
  	}
  },
  mounted:function(){
 
  },
  methods: {
		onValuesChange(picker, values) {
     this.value = values[0];
     console.log(this.value)
}
  }
}
</script>
 
<style>
 
</style>